import React, { useState } from "react"
import { Drawer, Button } from "antd"

const DrawerPlus = ({ visible = false, setVisible }) => {
  const onClose = () => {
    setVisible(false)
  }

  return (
    <>
      <Drawer
        title='Basic Drawer'
        placement='right'
        closable={false}
        onClose={onClose}
        visible={visible}
      >
        <p>Some contents...</p>
        <p>Some contents...</p>
        <p>Some contents...</p>
      </Drawer>
    </>
  )
}

export default DrawerPlus
